package com.steve.testng;

import org.testng.Assert;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;

/**
 * @Author: STEVE
 * @Description: 参数化测试 - 使用testng3.xml传送数据
 * @since: 2025-02-25
 */
public class TestCase9 {

    @Test(enabled = true)
    @Parameters({"param1", "param2"})
    public void TestNGLearn1(String param1, int param2) {
        System.out.println("this is TestNG test case1, and param1 is:" + param1 + "; param2 is:" + param2);
        Assert.assertFalse(false);
    }

    @Test(dependsOnMethods = {"TestNGLearn1"})
    public void TestNGLearn2() {
        System.out.println("this is TestNG test case2");
    }

}
